home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / List.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  8.6 KB  |  268 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.2
  7. */ 
  8. /*   $RCSfile: List.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:43:10 $ */
  9. /*
  10. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11. #ifndef _XmList_h
  12. #define _XmList_h
  13.  
  14. #include <Xm/Xm.h>
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. externalref WidgetClass xmListWidgetClass;
  21.  
  22. #define XmINITIAL     0
  23. #define XmADDITION    1
  24. #define XmMODIFICATION    2
  25.  
  26. #ifndef XmIsList
  27. #define XmIsList(w)    XtIsSubclass(w, xmListWidgetClass)
  28. #endif /* XmIsList */
  29.  
  30. typedef struct _XmListClassRec * XmListWidgetClass;
  31. typedef struct _XmListRec      * XmListWidget;
  32.  
  33.  
  34. /********    Public Function Declarations    ********/
  35. #ifdef _NO_PROTO
  36.  
  37. extern void XmListAddItem() ;
  38. extern void XmListAddItems() ;
  39. extern void XmListAddItemsUnselected() ;
  40. extern void XmListAddItemUnselected() ;
  41. extern void XmListDeleteItem() ;
  42. extern void XmListDeleteItems() ;
  43. extern void XmListDeletePositions() ;
  44. extern void XmListDeletePos() ;
  45. extern void XmListDeleteItemsPos() ;
  46. extern void XmListDeleteAllItems() ;
  47. extern void XmListReplaceItems() ;
  48. extern void XmListReplaceItemsPos() ;
  49. extern void XmListReplacePositions() ;
  50. extern void XmListReplaceItemsUnselected() ;
  51. extern void XmListReplaceItemsPosUnselected() ;
  52. extern void XmListSelectItem() ;
  53. extern void XmListSelectPos() ;
  54. extern void XmListDeselectItem() ;
  55. extern void XmListDeselectPos() ;
  56. extern void XmListDeselectAllItems() ;
  57. extern void XmListSetPos() ;
  58. extern void XmListSetBottomPos() ;
  59. extern void XmListSetItem() ;
  60. extern void XmListSetBottomItem() ;
  61. extern void XmListSetAddMode() ;
  62. extern Boolean XmListItemExists() ;
  63. extern int XmListItemPos() ;
  64. extern int XmListGetKbdItemPos() ;
  65. extern Boolean XmListSetKbdItemPos() ;
  66. extern Boolean XmListGetMatchPos() ;
  67. extern Boolean XmListGetSelectedPos() ;
  68. extern void XmListSetHorizPos() ;
  69. extern int XmListYToPos();
  70. extern Boolean XmListPosToBounds();
  71. extern void XmListUpdateSelectedList() ;
  72. extern Boolean XmListPosSelected();
  73. extern Widget XmCreateList() ;
  74. extern Widget XmCreateScrolledList() ;
  75.  
  76. #else
  77.  
  78. extern void XmListAddItem( 
  79.                         Widget w,
  80.                         XmString item,
  81.                         int pos) ;
  82. extern void XmListAddItems( 
  83.                         Widget w,
  84.                         XmString *items,
  85.                         int item_count,
  86.                         int pos) ;
  87. extern void XmListAddItemsUnselected( 
  88.                         Widget w,
  89.                         XmString *items,
  90.                         int item_count,
  91.                         int pos) ;
  92. extern void XmListAddItemUnselected( 
  93.                         Widget w,
  94.                         XmString item,
  95.                         int pos) ;
  96. extern void XmListDeleteItem( 
  97.                         Widget w,
  98.                         XmString item) ;
  99. extern void XmListDeleteItems( 
  100.                         Widget w,
  101.                         XmString *items,
  102.                         int item_count) ;
  103. extern void XmListDeletePositions(
  104.                         Widget    w,
  105.                         int      *position_list,
  106.                         int       position_count ) ;
  107. extern void XmListDeletePos( 
  108.                         Widget w,
  109.                         int pos) ;
  110. extern void XmListDeleteItemsPos( 
  111.                         Widget w,
  112.                         int item_count,
  113.                         int pos) ;
  114. extern void XmListDeleteAllItems( 
  115.                         Widget w) ;
  116. extern void XmListReplaceItems( 
  117.                         Widget w,
  118.                         XmString *old_items,
  119.                         int item_count,
  120.                         XmString *new_items) ;
  121. extern void XmListReplaceItemsPos( 
  122.                         Widget w,
  123.                         XmString *new_items,
  124.                         int item_count,
  125.                         int position) ;
  126. extern void XmListReplaceItemsUnselected( 
  127.                         Widget w,
  128.                         XmString *old_items,
  129.                         int item_count,
  130.                         XmString *new_items) ;
  131. extern void XmListReplaceItemsPosUnselected( 
  132.                         Widget w,
  133.                         XmString *new_items,
  134.                         int item_count,
  135.                         int position) ;
  136. extern void XmListReplacePositions(
  137.                         Widget    w,
  138.                         int      *position_list,
  139.                         XmString *item_list,
  140.                         int       item_count ) ;
  141. extern void XmListSelectItem( 
  142.                         Widget w,
  143.                         XmString item,
  144. #if NeedWidePrototypes
  145.                         int notify) ;
  146. #else
  147.                         Boolean notify) ;
  148. #endif /* NeedWidePrototypes */
  149. extern void XmListSelectPos( 
  150.                         Widget w,
  151.                         int pos,
  152. #if NeedWidePrototypes
  153.                         int notify) ;
  154. #else
  155.                         Boolean notify) ;
  156. #endif /* NeedWidePrototypes */
  157. extern void XmListDeselectItem( 
  158.                         Widget w,
  159.                         XmString item) ;
  160. extern void XmListDeselectPos( 
  161.                         Widget w,
  162.                         int pos) ;
  163. extern void XmListDeselectAllItems( 
  164.                         Widget w) ;
  165. extern void XmListSetPos( 
  166.                         Widget w,
  167.                         int pos) ;
  168. extern void XmListSetBottomPos( 
  169.                         Widget w,
  170.                         int pos) ;
  171. extern void XmListSetItem( 
  172.                         Widget w,
  173.                         XmString item) ;
  174. extern void XmListSetBottomItem( 
  175.                         Widget w,
  176.                         XmString item) ;
  177. extern void XmListSetAddMode( 
  178.                         Widget w,
  179. #if NeedWidePrototypes
  180.                         int add_mode) ;
  181. #else
  182.                         Boolean add_mode) ;
  183. #endif /* NeedWidePrototypes */
  184. extern Boolean XmListItemExists( 
  185.                         Widget w,
  186.                         XmString item) ;
  187. extern int XmListItemPos( 
  188.                         Widget w,
  189.                         XmString item) ;
  190. extern int XmListGetKbdItemPos(
  191.                         Widget w) ;
  192. extern Boolean XmListSetKbdItemPos(
  193.                         Widget w,
  194.                         int    pos ) ;
  195. extern int XmListYToPos( 
  196.                         Widget w,
  197.                         Position y) ; /* NeedWidePrototypes ????? */
  198. extern Boolean XmListPosToBounds(
  199.                         Widget w,
  200.                         int         position,
  201.                         Position   *x,
  202.                         Position   *y,
  203.                         Dimension  *width,
  204.                         Dimension  *height) ;
  205. extern Boolean XmListGetMatchPos( 
  206.                         Widget w,
  207.                         XmString item,
  208.                         int **pos_list,
  209.                         int *pos_count) ;
  210. extern Boolean XmListGetSelectedPos( 
  211.                         Widget w,
  212.                         int **pos_list,
  213.                         int *pos_count) ;
  214. extern void XmListSetHorizPos( 
  215.                         Widget w,
  216.                         int position) ;
  217. extern void XmListUpdateSelectedList( 
  218.                         Widget w) ;
  219. extern Boolean XmListPosSelected(
  220.             Widget     w,
  221.             int     pos);
  222. extern Widget XmCreateList( 
  223.                         Widget parent,
  224.                         char *name,
  225.                         ArgList args,
  226.                         Cardinal argCount) ;
  227. extern Widget XmCreateScrolledList( 
  228.                         Widget parent,
  229.                         char *name,
  230.                         ArgList args,
  231.                         Cardinal argCount) ;
  232. /* IXI ENHANCEMENT */
  233. #ifdef LIST_COLOUR_ITEMS
  234.  extern void XmListRecolorItem(
  235.                          Widget   w,
  236.                          Pixel    fg,
  237.                          Pixel    bg,
  238.                          XmString item);
  239.  
  240.  extern void XmListRecolorPos(
  241.                          Widget w,
  242.                          Pixel  fg,
  243.                          Pixel  bg,
  244.                          int    pos);
  245. #endif /* LIST_COLOUR_ITEMS */
  246.  
  247. #ifdef LIST_CLIENT_DATA
  248.  void XmListSetClientDataPos(Widget    w,
  249.                              XtPointer client_data,
  250.                              int       pos);
  251.  
  252.  void XmListSetClientDatasPos(Widget   w,
  253.                              XtPointer *client_data,
  254.                              int       item_count,
  255.                              int       pos);
  256. #endif /* LIST_CLIENT_DATA */
  257.  
  258. #endif /* _NO_PROTO */
  259. /********    End Public Function Declarations    ********/
  260.  
  261.  
  262. #ifdef __cplusplus
  263. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  264. #endif
  265.  
  266. #endif /* _XmList_h */
  267. /* DON'T ADD ANYTHING AFTER THIS #endif */
  268.